package com.topisv.tms.platform.yhd;

import com.yhd.YhdClient;
import com.yhd.object.store.StoreMerchantStoreInfo;
import com.yhd.request.store.StoreGetRequest;
import com.yhd.response.store.StoreGetResponse;

public class YHDStore {

	private static StoreGetRequest getStoreGetRequest(){
		return new StoreGetRequest();
	} 
	
	public static StoreMerchantStoreInfo getStoreMerchantStoreInfo(String url,String appKey,String appSecret,String sessionKey){
		StoreGetRequest sgRequest=getStoreGetRequest();
		YhdClient jClient=new YhdClient(url,appKey,appSecret,sessionKey,"json");
		StoreGetResponse response=jClient.excute(sgRequest, null);
		return response.getStoreMerchantStoreInfo();
	}
	
	public static StoreGetResponse getStoreGetResponse(String url,String appKey,String appSecret,String sessionKey){
		StoreGetRequest sgRequest=getStoreGetRequest();
		YhdClient jClient=new YhdClient(url,appKey,appSecret,sessionKey,"json");
	    return jClient.excute(sgRequest, null);
	}
}
